public class TestScanner {

	public static void main(String[] args)
	{
		Scanner scanner = new Scanner("trunk/regexSpec.txt", "trunk/regex_test_script.txt");
		Token tok = scanner.getNextToken();

		//getting tokens one by one. If EOF, getNextToken returns null.
		while(tok != null)
		{
			System.out.println("type: " + tok.getType());
			System.out.println("str: " + tok.getString());
			tok = scanner.getNextToken();
		}
	}
}
